package util;

import java.util.HashMap;
import java.util.List;

/**
 * @Author: tao
 * @Description: talk is cheap,show me the code!
 * @Date: create in 2020/10/10 15:10
 */
public class LayDataEx extends HashMap<String,Object> {

    public static LayDataEx data(int count,List<?> list){
        LayDataEx laydata = new LayDataEx();
        laydata.put("code",0);
        laydata.put("msg","");
        laydata.put("count",count);
        laydata.put("data",list);
        return laydata;
    }

    public static LayDataEx dataUpload(String filename){
        LayDataEx laydata = new LayDataEx();
        laydata.put("code",0);
        laydata.put("msg","");
        laydata.put("filename",filename);
        return laydata;
    }
}
